﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Webbshop
{
    public class Product : IComparable
    {
        public int ID { get; set; }
                public string Name { get; set; }

        public string ImageURL { get; set; }

        public string Description { get; set; }

        public int StockStatus { get; set; }

        public string Category { get; set; }

        public int Price { get; set; }

        public int CompareTo(object obj)
        {
            if (obj is Product)
            {
                var product = (Product)obj;

                return ID.CompareTo(product.ID);
            }

            throw new ArgumentException("Object is not a Product");
        }
    }
}
